{% extends 'base.html' %}
{% block class_book %}
    class='active'
{% endblock %}
{% block body %}
    <div class="panel panel-primary">
        <form class="form-horizontal" method="post">
            <div class="form-group" style="margin-top: 10px;">
                <label for="inputEmail3" class="col-sm-2 control-label">书名</label>
                <div class="col-sm-8">
                    <input class="form-control" id="inputEmail3" value="" type="text" name="book">
                    <label for="inputEmail3" class="col-sm-2 control-label">出版社：</label>
                    <select name="pub_id" id="" class="selector-add" style="margin-top: 10px;">
                        {% for pub in pub_list %}
                            <option value="{{ pub.pid }}">{{ pub.name }}</option>
                        {% endfor %}
                    </select>
                    <p style="margin-top: 10px;">
                        <label for="inputEmail3" class="col-sm-2 control-label">作者：</label>
                        <select name="auther" id="" multiple>
                            {% for auther in auther_list %}
                                <option value="{{ auther.pk }}">{{ auther.name }}</option>
                            {% endfor %}
                        </select>
                    </p>
                    <span style="color: red;">{{ error }}</span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary">新增</button>
                    <a href="/book/" class="btn btn-default">返回</a>
                </div>
            </div>
        </form>
    </div>
{% endblock %}